package com.saltedfish.tool.net;




import cn.droidlover.xdroidmvp.net.XApi;


public class Api {

    //测试环境端口
     public static final String API_BASE_URL = "http://120.79.145.107:8999/api/flag/";

    //线上环境端口
   // public static final String API_BASE_URL = "https://www.hengfengstudio.com/api/flag/";


    private static DyService dyService;


    public static DyService getDyService() {
        if (dyService == null) {
            synchronized (Api.class) {
                if (dyService == null) {
                    dyService = XApi.getInstance().getRetrofit(API_BASE_URL, true).create(DyService.class);
                }
            }
        }
        return dyService;
    }






}
